package com.colin.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Colin on 2017/2/13.
 */

public class ItemBean implements Parcelable{
    private String title;
    private String image;
    private String imageLarge;
    private String info;

    private String summary;
    private String author_intro;
    private String catalog;

    public ItemBean() {
    }

    protected ItemBean(Parcel in) {
        title = in.readString();
        image = in.readString();
        imageLarge = in.readString();
        info = in.readString();
        summary = in.readString();
        author_intro = in.readString();
        catalog = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(title);
        dest.writeString(image);
        dest.writeString(imageLarge);
        dest.writeString(info);
        dest.writeString(summary);
        dest.writeString(author_intro);
        dest.writeString(catalog);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ItemBean> CREATOR = new Creator<ItemBean>() {
        @Override
        public ItemBean createFromParcel(Parcel in) {
            return new ItemBean(in);
        }

        @Override
        public ItemBean[] newArray(int size) {
            return new ItemBean[size];
        }
    };

    public String getTitle() {
        return title;
    }

    public ItemBean setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getImage() {
        return image;
    }

    public ItemBean setImage(String image) {
        this.image = image;
        return this;
    }

    public String getImageLarge() {
        return imageLarge;
    }

    public ItemBean setImageLarge(String imageLarge) {
        this.imageLarge = imageLarge;
        return this;
    }

    public String getInfo() {
        return info;
    }

    public ItemBean setInfo(String info) {
        this.info = info;
        return this;
    }

    public String getSummary() {
        return summary;
    }

    public ItemBean setSummary(String summary) {
        this.summary = summary;
        return this;
    }

    public String getAuthor_intro() {
        return author_intro;
    }

    public ItemBean setAuthor_intro(String author_intro) {
        this.author_intro = author_intro;
        return this;
    }

    public String getCatalog() {
        return catalog;
    }

    public ItemBean setCatalog(String catalog) {
        this.catalog = catalog;
        return this;
    }

    @Override
    public String toString() {
        return "ItemBean{" +
                "title='" + title + '\'' +
                ", image='" + image + '\'' +
                ", imageLarge='" + imageLarge + '\'' +
                ", info='" + info + '\'' +
                ", summary='" + summary + '\'' +
                ", author_intro='" + author_intro + '\'' +
                ", catalog='" + catalog + '\'' +
                '}';
    }
}
